package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报工对象 mes_work
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
public class MesWork extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 报工id */
    private Integer id;

    /** 任务卡编码 */
    @Excel(name = "任务卡编码")
    private String taskCardId;

    /** 工序编码 */
    @Excel(name = "工序编码")
    private String processId;

    /** 已加工数 */
    @Excel(name = "已加工数")
    private Long finNum;

    /** 待加工数 */
    @Excel(name = "待加工数")
    private Long waitNum;

    /** 生产数量 */
    @Excel(name = "生产数量")
    private Long workNum;

    /** 生产进度 */
    @Excel(name = "生产进度")
    private Long workSchedule;

    /** 计划开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskTime;

    /** 计划结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskFinTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTaskCardId(String taskCardId) 
    {
        this.taskCardId = taskCardId;
    }

    public String getTaskCardId() 
    {
        return taskCardId;
    }
    public void setProcessId(String processId) 
    {
        this.processId = processId;
    }

    public String getProcessId() 
    {
        return processId;
    }
    public void setFinNum(Long finNum) 
    {
        this.finNum = finNum;
    }

    public Long getFinNum() 
    {
        return finNum;
    }
    public void setWaitNum(Long waitNum) 
    {
        this.waitNum = waitNum;
    }

    public Long getWaitNum() 
    {
        return waitNum;
    }
    public void setWorkNum(Long workNum) 
    {
        this.workNum = workNum;
    }

    public Long getWorkNum() 
    {
        return workNum;
    }
    public void setWorkSchedule(Long workSchedule) 
    {
        this.workSchedule = workSchedule;
    }

    public Long getWorkSchedule() 
    {
        return workSchedule;
    }
    public void setTaskTime(Date taskTime) 
    {
        this.taskTime = taskTime;
    }

    public Date getTaskTime() 
    {
        return taskTime;
    }
    public void setTaskFinTime(Date taskFinTime) 
    {
        this.taskFinTime = taskFinTime;
    }

    public Date getTaskFinTime() 
    {
        return taskFinTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskCardId", getTaskCardId())
            .append("processId", getProcessId())
            .append("finNum", getFinNum())
            .append("waitNum", getWaitNum())
            .append("workNum", getWorkNum())
            .append("workSchedule", getWorkSchedule())
            .append("taskTime", getTaskTime())
            .append("taskFinTime", getTaskFinTime())
            .toString();
    }
}
